﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Collections.ObjectModel;
using RSSManagers;

public partial class Admin_RSSManager : ParentPage
{
    RssManager reader = new RssManager();
    Collection<Rss.Items> list;

    protected void Page_Load(object sender, EventArgs e)
    {
        reader.Url = ConfigurationManager.AppSettings["RSSFeedsNews_4"].ToString();
        reader.GetFeed();
        list = reader.RssItems;
        for (int i = 0; i < list.Count; i++)
        {
            div_NewsDemo.InnerHtml = div_NewsDemo.InnerHtml + "<br /><br />News Title : " + list[i].Title + "<br />" +
                "<br /><br />News Link : " + list[i].Link + "<br />" +
                "<br /><br />News Description : " + list[i].Description + "<br />" +
                "<br /><br />News Image : <img src='" + list[i].Image + "'/><br />************************************************<br /><br />";
        }
    }
}